<template>
	<view> <!--  -->
		<z-paging ref="paging" v-model="dataList" @query="getDataListAll" :show-loading-more-no-more-view="false">
			<view slot="top">
				<u-navbar title="账户列表" placeholder :autoBack="true" leftIconColor="#fff" bgColor="#00000000"
					:titleStyle="titleStyle">
				</u-navbar>
			</view>
			<view @click="onInfoClick(item)" class="itemV" v-for="(item,index) in dataList" :key="index">
				<!-- <image class="itemIv"></image> -->
				<view class="itemTv1">{{item.shop_name}}</view>
				<view class="itemTv2">{{item.money}}</view>
			</view>
		</z-paging>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				titleStyle: {
					"color": "#ffffff"
				},
				dataList: [],
			}
		},
		onLoad() {

		},
		methods: {
			getDataListAll() {
				this.$api.getAccount({}).then((res) => {
					this.$refs.paging.complete(res);
				}).catch((e) => {
					this.$refs.paging.complete(false);
				})
			},
			onInfoClick(item) {
				this.$u.route({
					url: '/mine/me/MineInfo',
					params: {
						item: JSON.stringify(item),
					}
				})
			},
		}
	}
</script>

<style>
	.itemV {
		height: 152rpx;
		display: flex;
		align-items: center;
		background-color: #1f1f1f;
		border-radius: 10rpx;
		margin: 30rpx;
		padding-left: 50rpx;
		padding-right: 50rpx;
		background-image: url('https://s1.ax1x.com/2023/07/21/pCbZx4e.png');
		background-size: 100% 100%;
	}

	.itemIv {
		width: 80rpx;
		height: 80rpx;
		border-radius: 10rpx;
	}

	.itemTv1 {
		flex: 1;
		margin-left: 24rpx;
		font-size: 32rpx;
		color: #fff;
	}

	.itemTv2 {
		font-size: 50rpx;
		font-family: PingFangSC-Semibold, PingFang SC;
		font-weight: 600;
		color: #E6A5B4;
	}
</style>